home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / html / vendors / charybda / software / launch.csh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-07-26  |  563b  |  21 lines

  1. #!/bin/csh -f
  2.  
  3. if !($?home) then
  4.         if !($?user) then
  5.                 set usermatch = "^[^:]*:[^:]*:`id -u`:"
  6.                 echo "user not set... using $usermatch"
  7.         else
  8.                 set usermatch = "^$user:"
  9.         endif
  10.  
  11.         set newhome = `grep "$usermatch" /etc/passwd | head -1 | cut -d: -f6`
  12.         echo "home directory not set... setting to $newhome"
  13.         set home = "$newhome"
  14. endif
  15.  
  16. cd $home
  17.  
  18. jot -v $HOTMIXDIR/html/vendors/charybda/software/charybda/diver_demo_instr 
  19.  
  20. $HOTMIXDIR/html/vendors/charybda/software/charybda/diver  
  21.